package com.yyl;

public class MyClass {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

// 类
class MyTest{
    public static void main(String[] args) {
        MyClass m = new MyClass();
        m.setName("shfkjsgs");
        String name = m.getName();
        System.out.println(name);
    }

}